﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CNKI.TPI.Web.Sys.Model;

namespace CNKI.TPI.Web.Sys.IDAO
{
    public interface IUserDAO
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        SYS_CMS_USER GetUser(string userName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        IList<SYS_CMS_USER_IP> GetUserIP(int userID);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        IList<SYS_CMS_USER_GROUP> GetUserGroup(int userID);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="groupID"></param>
        /// <returns></returns>
        IList<SYS_CMS_GROUP> GetGroup(IEnumerable<int> groupID);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        IList<SYS_CMS_USER_ACL_DB_RIGHT> GetUserDBRight(int userid);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        DataTable GetAllUser();

        /// <summary>
        /// 获得密级信息
        /// </summary>
        /// <param name="dbID"></param>
        /// <param name="fieldType"></param>
        /// <returns></returns>
        IList<SYS_CMS_SECURITY> GetSecurityInfo();
    }
}
